package com.kefu.robot.model;

import java.io.Serializable;

import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@TableName(value="robot_study")
@ApiModel(description="智能学习")
public class RobotStudy implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id")
    @NotEmpty
    @ApiModelProperty(name = "id", value = "主键")
    private String id;

    /**
     * 租户
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(name = "tenantId", value = "租户")
    private String tenantId;

    /**
     * 机器人
     */
    @TableField(value = "robot_no")
    @ApiModelProperty(name = "robotNo", value = "机器人")
    private Integer robotNo;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Long createTime;

    /**
     * 用户问题
     */
    @ApiModelProperty(name = "question", value = "用户问题")
    private String question;

    /**
     * 会话id
     */
    @TableField(value = "session_id")
    @ApiModelProperty(name = "sessionId", value = "会话id")
    private String sessionId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(name = "userId", value = "用户id")
    private String userId;

    /**
     * 词条id
     */
    @TableField(value = "doc_id")
    @ApiModelProperty(name = "docId", value = "词条id")
    private String docId;

    /**
     * 词条问题
     */
    @TableField(value = "doc_question")
    @ApiModelProperty(name = "docQuestion", value = "词条问题")
    private String docQuestion;

    @Transient
    @TableField(exist=false)
    @ApiModelProperty(value = "机器人名字")
    private String robotName;

    private static final long serialVersionUID = 1L;
}